package com.opal.modules.costReportForm.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.math.BigDecimal;

//成本报告主表
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CostReport {

    //成本表主键id
    private String costReportId;

    //用户id
    private Long userId;

    //销售组织
    private String salesPkOrg;

    //公司套账
    private String pkOrgAccount;

    //报价单编号
    private String quotation;

    //客户全称
    private String clientName;

    //客户编码
    private String clientcode;

    //日期
    private String costReportDate;

    //产品名称
    private String productName;

    //成品编码
    private String finishedProductCode;
    //成品编码
    private String finishedProductCode2;
    //成品编码   ---查询用的
    private String finishedProductCode3;

    //容量规格
    private String capacity;

    //单位
    private String costReportUnits;

    //水料成本价合计
    private BigDecimal totalOfPartA;

    //A报价基准合计
    private BigDecimal quotedPriceBenchmarkA;

    //人工工时合共
    private BigDecimal manHourTotal;

    //人工成本合共
    private BigDecimal laborCostTotal;

    //其他费用合共
    private BigDecimal otherChargesTotal;

    //人工与+其他费用合计
    private BigDecimal totalOfPartB;

    //配件费合计
    private BigDecimal totalOfPartC;

    //增值出口税率
    private Integer vatexportTaxRate;

    //增值出口税款
    private BigDecimal vatexportTaxCost;

    //税项率(城建\教育税)
    private Integer taxItemRate;

    //税项款(城建\教育税)
    private BigDecimal taxItemCost;

    //配件耗损率
    private BigDecimal accessoriesLossRate;

    //总成本
    private BigDecimal totalCost;

    //总成本含税
    private BigDecimal totalCostIncludesTax;

    //报价基准
    private BigDecimal quotedPriceBenchmark;

    //订单量
    private BigDecimal orderQuantity;

    //实际报价
    private BigDecimal realityQuotedPrice;

    //兑换率
    private BigDecimal conversionRate;

    //货币类型
    private String currencyType;

    //兑换后的金额
    private BigDecimal conversionMoney;

    //整套毛利
    private BigDecimal grossMarginMoney;

    //整套毛利率
    private BigDecimal grossMarginRate;

    //此配方是否客料(1是客料,2非客料)
    private Integer whetherSupplier;

    //此成品是否含有客料(1是, 2否)
    private Integer finishedProduct;

    //更新类型(1新报价,2更新成本,3更新报价)
    private Integer updateType;

    //部门
    private String department;

    //薰蒸费
    private BigDecimal fumigationCharge;

    //纸箱证明书
    private BigDecimal cartonCertificate;

    //出口报关费用\检查费用
    private BigDecimal customsFee;

    //运费
    private BigDecimal freight;

    //授权费\顾问\其他
    private BigDecimal otherCharges;

    //报价基准(工时)
    private Integer quotedPriceManHour;

    //审核状态:0未审核 ,1审核通过 ,2审核不通过
    private Integer costReportStatus;

    //成本报告版本
    private String costEdition;

    //外销单类型
    private String exportSales;

    //当月香港人名币转港币汇率
    private BigDecimal HKDConversion;

    //根据公式兑换后的金额：实际报价*0.63（0.92）/港币汇率    香港接单惠州做货：0.63,其它全是0.92
    private BigDecimal HKDConversionPrice;

    //销售类型(1内销，2外销)：用于判断发送给哪个财务,内销要发送两个财务，外销一个财务
    private String saleType;

    //备注：利润低于10%必须备注原因，负利润必须备注订单量。
    private String remark;

    //实际报价除以1.02后价格
    private BigDecimal realityQuotedPrice1;

    //实际报价除以1.13后价格
    private BigDecimal realityQuotedPrice2;

    //纸箱的装箱数量：计算纸箱价格需要用到
    private String encasementQuantity;

    //授权用户id修改"报价单编号"
    private Long appointUserId;

    //成本报告状态：正常、停用
    private String costReportStatus2;

    //成本报告产品图片路径
    private String costImagePath;
}